package com.zhongyu.controller;

import com.zhongyu.service.KuaiDiCanService;
import com.zhongyu.vo.KuaiDiRespData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class KuaiDiController {
    @Resource
    private KuaiDiCanService kuaiDiCanService;
@GetMapping("/getByApiKey/{apiKey}/{expressNumber}")
@ResponseBody
    public KuaiDiRespData getByApiKey(@PathVariable String apiKey, @PathVariable String expressNumber){
    System.out.println("sdfsfs");
        return kuaiDiCanService.getByApiKey(apiKey,expressNumber);
}
}
